package com.yvtian.config;

import org.apache.ibatis.logging.Log;

public class MyBatisPlusStdOutImpl implements Log {
    private final org.slf4j.Logger logger;

    public MyBatisPlusStdOutImpl(String clazz) {
        logger = org.slf4j.LoggerFactory.getLogger(clazz);
    }

    @Override
    public boolean isDebugEnabled() {
        return logger.isDebugEnabled();
    }

    @Override
    public boolean isTraceEnabled() {
        return logger.isTraceEnabled();
    }

    @Override
    public void error(String s, Throwable e) {
        logger.error(s, e);
    }

    @Override
    public void error(String s) {
        logger.error(s);
    }

    @Override
    public void debug(String s) {
        logger.debug(s);
    }

    @Override
    public void warn(String s) {
        logger.warn(s);
    }

    @Override
    public void trace(String s) {
        logger.trace(s);
    }
}
